<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String	id = request.getParameter("id") == null ? "" : request.getParameter("id");
%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="/admin/js/default.js"></script>
<script type="text/javascript" src="/admin/js/jquery-1.3.2.min.js"></script>
<link href="/admin/css/ifr_default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
	function getId()
	{//입력한 값 적용
		var frm = document.frm;	
		opener.document.frm.hiddenid.value	= frm.id.value;
		opener.document.frm.id.value		= frm.id.value;
	}
	function chechk(){
		var frm = document.frm;
		if($("#id").val() == "" ){
			alert("ID을 입력하세요.");
			return false;
		}else if(!isEng($("#id").val())){
			alert("영문숫자만 가능합니다.");
			return false;
		}else{
			frm.target="_self";
			return true;
		}
		
	}
//-->
</script>
</head>
<body>
<!-- Header  Start -->
<div class="login-con">
<center>

<form name="frm" id="frm" action="iddbx.jsp" method="post" onsubmit="return chechk();">
아이디를 입력하세요 :<input type="text" name="id" id="id" value="<%=id %>" style="ime-mode:inactive;"><br/><br/>
<input type="submit" value="ID체크" class="btn-bg-gray" id="checkBtn" />
<%if(!id.equals("")){ %>
<input type="button" value="사용" class="btn-bg-gray" id="idBtn" onclick="getId();window.close();" />
<%} %>
</form>
</center>
</div>
</body>
</html>